<th:block>
    package [[${basePackage}]].bean.[[${beanModel}]];
</th:block>
<th:block>
    import [[${basePackage}]].bean.BaseEntity;
    import javax.persistence.Column;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import java.util.Date;
</th:block>
<th:block>
    /**
    * @Author:[[${SysAuthor}]]
    * @Date:[[${nowTime}]]
    * @Description:[[${beanDesc}]]
    */
    @Table(name = "[[${beanTable}]]")
    public class [[${beanName}]] extends BaseEntity {
</th:block>
<th:block th:each="item : ${beanFieldList}">
    <th:block th:if="${item.columnJava} == 'id'">
        // 自增ID
        @Id
        @GeneratedValue(generator = "JDBC")
        private Long id;
    </th:block>
    <th:block th:if="${item.columnJava} != 'id'">
        // [[${item.columnDesc}]]
        @Column(name = "[[${item.columnEng}]]")
        private [[${item.columnType}]] [[${item.columnJava}]];
    </th:block>
</th:block>
<th:block>
    /**
    * get/set
    */
</th:block>
<th:block th:each="item : ${beanFieldList}">
    <th:block th:if="${item.columnJava} == 'id'">
        public Long getId() {
        return id;
        }
        public void setId(Long id) {
        this.id = id;
        }
    </th:block>
    <th:block th:if="${item.columnJava} != 'id'">
        public [[${item.columnType}]] get[[${item.columnJavaB}]](){
        return this.[[${item.columnJava}]];
        }
        public void set[[${item.columnJavaB}]]([[${item.columnType}]] [[${item.columnJava}]]) {
        this.[[${item.columnJava}]] = [[${item.columnJava}]];
        }
    </th:block>
</th:block>

}